﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using System;
using YFurion.DataFilters;
using YFurion.DataFilters.Extensions;

namespace YFurion
{
    public class YFurionApplicationComponent : IApplicationComponent
    {
        public void Load(IApplicationBuilder app, IWebHostEnvironment env, ComponentContext componentContext)
        {
            app.RegisterDataFilter(DataFilterConst.SoftDelete, true);
        }
    }
}
